Performing Standard STRING-Related Operations
VectorScript also provides support in its string API for handling the extended strings in CHAR arrays. Operations such as obtaining string length, substring position, and string concatenation can be performed on CHAR arrays just as they can on STRING values.
To use CHAR arrays with string API functions, just use the CHAR array in place of a STRING variable for a given function parameter or return value. For example:
 
s : STRING;
textArray :ARRAY [1..32] OF CHAR;
textArray:= 'A VectorScript text string';
In the example, a CHAR array is used in place of a STRING as the source value for the Copy() function. The result of the Copy() operation is then assigned to a STRING variable. String API function calls support both static and dynamic CHAR arrays.
The following VectorScript API functions have CHAR array support.
 

Arrays in VectorScript : Dynamic Arrays : Performing Standard STRING-Related Operations

Nemetschek NA
Phone: 410.290.5114
Fax: 410.290.8050